public class Offer extends Action
| Constructor and Description |
|---|
Offer(Agent agent,
Bid bid)
Creates an action symbolizing an offer to the opponent.
|
Offer(AgentID agentID,
Bid bid)
Creates an action symbolizing an offer for the opponent.
|
Offer(Bid bid)
Creates an action symbolizing an offer for the opponent.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Bid |
getBid()
Returns the bid offered by the agent which
created this offer.
|
int |
hashCode() |
java.lang.String |
toString()
Enforces that actions implements a string-representation.
|
getAgent, getBidFromActionpublic Offer(AgentID agentID, Bid bid)
agentID - id of the agent which created the offer.bid - for the opponent.public Offer(Bid bid)
bid - for the opponent.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - object to which this object is compared.public Bid getBid()